<template>
  <a-config-provider :locale="zhCN">
    <router-view></router-view>
  </a-config-provider>
</template>
<script setup>
  //import { generate } from '@ant-design/colors';
  import { webStorage } from '@/utils/webStorage';
  import { ACCESS_TOKEN } from '@/mutation-type';
  import { useUserStore } from '@/store/user';

  import zhCN from 'ant-design-vue/es/locale/zh_CN';
  import dayjs from 'dayjs';
  import 'dayjs/locale/zh-cn';
  dayjs.locale('zh-cn');

  console.log(__APPNAME__);

  let user = useUserStore();
  user.setUser(webStorage.ls.get(ACCESS_TOKEN));
</script>
